package org.asociacion.backend.service.impl;

import javax.transaction.Transactional;

import org.asociacion.backend.bo.UserBo;
import org.asociacion.backend.persistence.dao.UserDao;
import org.asociacion.backend.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
	
	@Autowired
	private UserDao userDao;

	@Transactional
	@Override
	public UserBo getUser(Integer id) {
		return new UserBo(userDao.read(id));
	}

	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}

}
